package com.company;
import song.yun.*;
import java.util.ArrayList;
import java.util.Scanner;
import java.util.Date;
import java.util.Calendar;
//import java.util.Formatter;
import java.io.*;
import java.io.FileNotFoundException;
import java.lang.NullPointerException;
import java.lang.System;

public class Main {
    private newjavaclass n;
    public static double PI;
    static {PI = 3.14159;}
    public Main(){}
    public Main(int a, int b){
        this.n = new newjavaclass(a, b);
    }
    public static void main(String[] args) {
//        Person p = new Person();
//        try{
//            FileOutputStream fs = new FileOutputStream("Person.ser");
//            ObjectOutputStream os = new ObjectOutputStream(fs);
//            os.writeObject(p);
//            os.close();
//
//        }catch(Exception e){
//            e.printStackTrace();
//        }
        try{
            FileInputStream fs = new FileInputStream("Person.ser");
            ObjectInputStream is = new ObjectInputStream(fs);
            Object o = is.readObject();
            is.close();
            Person p2 = (Person)o;
            p2.print();
        }catch(Exception e){
            e.printStackTrace();
        }


    }
    public void fun(Person p){
        try {
            p.fun1(2);
            p.describe("song");
        }catch(Exception e){
            e = new exception_jicheng("宋云龙");
            e.printStackTrace();
        }
        System.out.println("先行一步");
        Pet.show();
    }
}

